package com.qf.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.data.annotation.Transient;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;


/**
 * (RoomPrice)表实体类
 *
 * @author makejava
 * @since 2020-09-21 10:17:08
 */
@SuppressWarnings("serial")
@Data
@Accessors(chain = true)
public class RoomPrice implements Serializable{
    @TableId(type = IdType.AUTO)
    @Field(type = FieldType.Integer,index = false)
    private Integer id;
    @Field(type = FieldType.Integer,index = false)
    private Integer rid;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @Field(type = FieldType.Long)
    private Date date;
    @Field(type = FieldType.Double)
    private double price;
    @Transient
    private Integer type;
    @Field(type = FieldType.Integer)
    private Integer number;
    @Field(type = FieldType.Integer)
    private Integer hasNumber;
}